//
//  KingfisherExtension.swift
//  七哥直播
//
//  Created by seven on 2017/12/21.
//  Copyright © 2017年 seven. All rights reserved.
//

import UIKit
extension UIImageView {
    func setImage(_ URLString: String?, _ placeHolderName: String?){
        guard let urlString = URLString else {
            return
        }
        guard let placeholderNmae = placeHolderName else {
            return
        }
        guard let url = URL(string: urlString) else {
            return
        }
        kf.setImage(with: url, placeholder: UIImage(named: placeholderNmae))
    }
}
